<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<html>
<jsp:include page="../head.jsp"></jsp:include>
<body>
<form id='fmTbFlowFlowNodeMiddle'  action="TbFlowFlowNodeMiddleServlet?method=${sessionScope.tbFlowFlowNodeMiddle==null?'add':'edit'}" method='post'>
<input type='hidden' name='flowFlowNodeMiddleId' id='flowFlowNodeMiddleId' value='${sessionScope.tbFlowFlowNodeMiddle.flowFlowNodeMiddleId }' />
<table>
<tr><td colspan='2' >&nbsp;</td></tr>
<tr>
    <td>环节序列</td>
    <td><input type='text' name='flowFlowNodeMiddleSeq' id='flowFlowNodeMiddleSeq' value='${sessionScope.tbFlowFlowNodeMiddle.flowFlowNodeMiddleSeq }' onkeyup="value=value.replace(/[^\d]/g,'') "onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"  /></td>
</tr>
<tr>
    <td>环节编号</td>
    <td>
    <select name='flowId' id='flowId' >
    <option value='0' selected >无</option>
	<c:forEach items="${sessionScope.tbFlowList==null?'':sessionScope.tbFlowList}" var="tbFlow" varStatus="status">
		<option value='${tbFlow.flowId}' ${sessionScope.tbFlowFlowNodeMiddle.tbFlow.flowId==tbFlow.flowId?' selected ':''}  ${param.flowId==tbFlow.flowId?' selected ':''} >${tbFlow.flowName}</option>
	</c:forEach>
    </select>
    </td>
</tr>
<tr>
    <td>节点编号</td>
    <td>
    <select name='flowNodeId' id='flowNodeId' >
    <option value='0' selected >无</option>
	<c:forEach items="${sessionScope.tbFlowNodeList==null?'':sessionScope.tbFlowNodeList}" var="tbFlowNode" varStatus="status">
		<option value='${tbFlowNode.flowNodeId}' ${sessionScope.tbFlowFlowNodeMiddle.tbFlowNode.flowNodeId==tbFlowNode.flowNodeId?' selected ':''} >${tbFlowNode.flowNodeName}</option>
	</c:forEach>
    </select>
    </td>
</tr>
<tr>
    <td colspan='2' align="center" ><input type="submit" name="btsubmit" id="btsubmit" value="${sessionScope.tbFlowFlowNodeMiddle==null?'添加':'修改'}" /><input type='reset' value='重置' /><input type='button' value='返回' onclick='history.go(-1);' /></td>
</tr></table>
</form><jsp:include page="../foot.jsp"></jsp:include>
</body>
</html>